package com.csx.base.design.constructor.abstractFactory;

/**
 * @Description
 * @Author cuisongxu
 * @date 2022/6/29 12:19
 * @Version 1.0
 */
public class Marine extends LowClassUnit{

    public Marine(int x, int y) {
        super(x, y);
    }

    @Override
    public void show() {
        System.out.println("士兵出现在坐标: [" + x + "," + y +"]");
    }

    @Override
    public void attack() {
        System.out.println("士兵用机关枪射击,攻击力: " + attack);
    }
}
